<?php
/**
 * Created by PhpStorm.
 * Script Name: Auth.php
 * Create: 12/17/22 11:42 AM
 * Description:
 * Author: fudaoji<fdj@kuryun.cn>
 */

namespace plugin\wechat\app\admin\service;


class Auth extends \app\admin\service\Auth
{

    /**
     * 获取菜单
     * Author: fudaoji<fdj@kuryun.cn>
     * @param null $admin
     * @return array|mixed|null
     */
    public static function getMenuList($admin = null){
        $menus = plugin_config('menu')['admin'];
        if(self::isSuperAdmin($admin)){
            return $menus;
        }
        return [];
    }

    /**
     * 获取员工在当前应用中的权限
     * Author: fudaoji<fdj@kuryun.cn>
     */
    public static function getAuthList($admin = null){
        //todo
        return [];
    }
}